{
  systemPackages = builtins.concatLists (lib.attrValues super.packages);
  sessionVariables = lib.mkMerge [
    {
      PAGER = lib.getExe pkgs.moor;
      GSK_RENDERER = "ngl";
      NIXOS_OZONE_WL = "1";
      MOZ_USE_XINPUT2 = "1";
      RUNEWIDTH_EASTASIAN = "0";
      GNOME_DESKTOP_SESSION_ID = "this-is-deprecated";
      MANGOHUD_CONFIG = builtins.concatStringsSep "," [
        "no_display"
        "display_server"
        "wine"
        "winesync"
        "gamemode"
        "cpu_temp"
      ];
    }
    (lib.mkIf (builtins.elem "ntsync" config.boot.kernelModules) {
      WINENTSYNC = "1";
    })
    (lib.mkIf (config.specialisation != { }) {
      MOZ_DISABLE_RDD_SANDBOX = "1";
    })
  ];
  etc."logid.cfg".text = ''
    devices: (
    {
      name: "ERGO M575 Trackball";
      dpi: 700;
      buttons: (
        {
          cid: 0x56;
          action: {
            type: "Gestures";
            gestures: (
              {
                direction: "Left";
                mode: "Axis";
                axis: "REL_HWHEEL_HI_RES";
                axis_multiplier: 1.0;
              },
              {
                direction: "Right";
                mode: "Axis";
                axis: "REL_HWHEEL_HI_RES";
                axis_multiplier: -1.0;
              },
              {
                direction: "Up";
                mode: "Axis";
                axis: "REL_WHEEL_HI_RES";
                axis_multiplier: -1.0;
              },
              {
                direction: "Down";
                mode: "Axis";
                axis: "REL_WHEEL_HI_RES";
                axis_multiplier: 1.0;
              },
              {
                direction: "None";
                mode: "OnRelease";
                action: {
                  type: "Keypress";
                  keys: ["BTN_EXTRA"];
                }
              }
            );
          }
        }
      );
    }
    );
  '';
}
